﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TRTCMain.Controls
{
    public partial class RaiseCount : UserControl
    {
        public TRTC.VideoMainForm videoMainForm;
        public RaiseCount()
        {
            InitializeComponent();
        }
        List<string> list = new List<string>();

        public void RemoveCount(int count)
        {
            list.Remove(count.ToString());
            label1.Text = list.Count.ToString();
            if (list.Count == 0)
            {
                this.Visible = false;
            }
            else
            {
                if (TCommon.AppContext.isHost)
                {
                    this.Visible = true;
                }
            }
        }
        public void RemoveCountAll()
        {
            list.Clear();
            label1.Text = list.Count.ToString();
        }

        public void UpdateHandCount(int count) {
            label1.Text = count.ToString();
        }
    }
}
